<?php
/**
 * Created by PhpStorm.
 * User: NeverGiveUp
 * Date: 2017/11/13
 * Time: 16:04
 */
namespace Home\Model;

use Think\Model;

class UserModel extends Model
{
    protected $_validate = array(
        array('username','require','用户名不能为空'),
        array('password','require','密码不能为空'),
        array('password','password2','确认密码不正确',0,'confirm'),
        array('username','','帐号名称已经存在！',0,'unique',1),
    );
}